window.onload = function() {
	getUrlVars();
}
function getUrlVars() {
	var SearchString = window.location.search.substring(1);
	var VariableArray = SearchString.split('&');
	for ( var i = 0; i < VariableArray.length; i++) {
		var KeyValuePair = VariableArray[i].split('=');
		if (KeyValuePair[0] == "_xuid") {
			url = document.getElementById("_xuid").href;
			if (existParaUrl(url)) {
				document.getElementById("_xuid").href = url + "&"
						+ VariableArray[i];
			} else {
				document.getElementById("_xuid").href = url + "?"
						+ VariableArray[i];
			}
			return KeyValuePair[1];
		}
	}
}

function existParaUrl(url) {
	if (url) {
		var arr = url.split('?');
		return arr.length > 1 ? true : false;
	}
	return false;

}